{template header}
<div id="page" class="wrap">
  <h2>文章列表</h2>
  <div class="panel">
    <div class="code">
      <ul class="artlist">
        {loop $demodata  $vlaue}
        <li><span>[{$vlaue["date"]}]</span>{$vlaue["id"]}.{$vlaue["title"]}</li>
        {/loop}
      </ul>
      {if $page["total_count"]>0}<!--分页开始-->
      <ul class="topage">
        <div>
          <table width="100%" border="0" cellpadding="5" cellspacing="0">
            <tr>
              <td valign="bottom" align="left" nowrap="true" style="width:40%;">总记录: {$page["total_count"]}  页码:{$page["current_page"]}/{$page["total_page"]}  每页：{$page["page_size"]}</td>
              <td valign="bottom" align="right" nowrap="true" class="" style="width:60%;"> {if $page["current_page"] != $page["first_page"]} <a style="margin-right:5px;" href="{APP}index.php/Index/lists/p/{$page["first_page"]}">首页</a> <a style="margin-right:5px;" href="{APP}index.php/Index/lists/p/{$page["prev_page"]}">上一页</a>{/if}
                {loop $page["all_pages"] $vlaue}
                {if $vlaue != $page["current_page"]} <a style="margin-right:5px;font-weight:Bold;" href="{APP}index.php/Index/lists/p/{$vlaue}">{$vlaue}</a> {else} <span style="margin-right:5px;font-weight:Bold; color:#82BA09;">{$vlaue}</span> {/if}
                {/loop}
                {if $page["current_page"] != $page["last_page"]} <a style="margin-right:5px;" href="{APP}index.php/Index/lists/p/{$page["next_page"]}">下一页</a> <a  style="margin-right:5px;" href="{APP}index.php/Index/lists/p/{$page["last_page"]}">尾页</a></td>
              {/if} </tr>
          </table>
        </div>
      </ul>
      {/if}<!--分页结束--> 
    </div>
  </div>
</div>
{template footer}